<%@include file="/WEB-INF/common/taglibs.jsp"%>

<script type="text/javascript" src="${ctx}/ckfinder/ckfinder.js"></script>

<script>
$(document).ready(function(){
	$("form.form-horizontal.seperator[method='post']").validate();
	
});
	
	
 </script>
<div class="row-fluid">

	<div class="span12">

		<div class="page-header">
			<h4>Download Entry </h4>
		</div>

<form class="form-horizontal seperator" method="post">
<!--name --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="name">Name :</label><input class="span4" id="name" name="name"   type="text" value="${entity.name}" /></div></div></div>
<!--image --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="image">Image :</label><input class="span4" id="image" name="image"   type="text" value="${entity.image}" /></div></div></div>
<!--orderRank --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="orderRank">Order Rank :</label><input class="span4" id="orderRank" name="orderRank"   type="text" value="${entity.orderRank}" /></div></div></div>
<!--date --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="date">Date :</label><input class="span4 datepicker" id="date" name="date" type="text" value="<fmt:formatDate pattern="yyyy-MM-dd" value="${entity.date}" />" /></div></div></div>
<!--category --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3">Category :</label><div class="span4 controls"><select name="categoryId"><c:if test="${not empty downloadCategories}"><c:forEach var="single" items="${downloadCategories}"><option value="${single.id}"${(single.id == entity.category.id)?'selected':'' }>${single.name}</option></c:forEach></c:if></select></div></div></div></div>
<!--description --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="description">Description :</label><textarea name="description" class="span4 limit elastic" id="description" rows="3" cols="5">${entity.description}</textarea></div></div></div>
<!--attachmentUrl --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="attachmentUrl">Attachment Url :</label><input class="span4 ckfile" id="attachmentUrl" name="attachmentUrl"   type="text" value="${entity.attachmentUrl}" /></div></div></div>
<!--link --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="link">Link :</label><input class="span4" id="link" name="link"   type="text" value="${entity.link}" /></div></div></div>



 <div class="form-row row-fluid">
				<div class="span12">
					<div class="row-fluid">
						<div class="form-actions">
							<div class="span3"></div>
							<div class="span4 controls">
								<button type="submit" class="btn btn-info marginR10">Save
									changes</button>
								<button class="btn btn-danger">Cancel</button>
							</div>
						</div>
					</div>
				</div>
			</div>
		</form>

	</div>
	<!-- End .span12 -->

</div>
<!-- End .row-fluid --> 

